<?php
/*
 * abstract class
 * all extends this class
 * created by fq
 * 2012-03-30
 */
require_once 'header.php';
abstract class Base{
	function __set($key, $val){
		$this->$key=$val;
	}
	function __get($key){
		if (isset($key)) {
			return $this->$key;
		}else {
			$msg=$key->toString();
			P($msg);
			return null;
		}
	}
}